<!doctype html>
<html>

<head>  
    <title>{$article.post_title}</title>
    <meta name="keywords" content="{$site_info.site_seo_keywords|default=''}"/>
    <meta name="description" content="{$site_info.site_seo_description|default=''}">
    <include file="public@head"/>
    <include file="public@function"/>
    <link href="__TMPL__/public/assets/css/index.css" rel="stylesheet">
</head>

<body>

    <div id="wrapper">
        <include file="public@header"/>
        <div class="jztop"></div>
        <div class="container">
            <h3 class="nh1"><span>您现在的位置是：<a href="/" target="_self">网站首页</a>>><a href="{:cmf_url('portal/List/index',array('id'=>$category['id']))}" target="_blank">{$category.name}</a>>>>{$article.post_title}</span><b>{$article.post_title}-{$category.name}</b></h3>        
            <div class="bloglist f_l">
                <if condition="$article['post_status']">
           
                <h2>{$article.post_title}</h2>
                <div>
                    <span>{:date('Y-m-d H:i',$article.published_time)} by {$article.user.user_nickname}</span>
                </div>
                <hr />


                {$article.post_content}

                <php>$next_pre = next_pre($article['id'],$category['id']);</php>
                <div class="pager">
                    <php>
                        if(!empty($next_pre['prev'])){
                    </php>
                    <li class="previous"><a href="{:cmf_url('portal/Article/index',array('id'=>$next_pre['prev']['id'],'cid'=>$category['id']))}">上一篇 | {$next_pre.prev.post_title}</a></li>
                    <php>
                        }
                        if(!empty($next_pre['next'])){
                    </php>                    
                    <li class="next"><a href="{:cmf_url('portal/Article/index',array('id'=>$next_pre['next']['id'],'cid'=>$category['id']))}">{$next_pre.next.post_title} | 下一篇</a></li>
                    <php>}</php>
                </div> 
                <if condition="!empty($article['post_source'])">
                    <div>
                        <b>注：本文转载自{$article.post_source}，转载目的在于传递更多信息，并不代表本网赞同其观点和对其真实性负责。如有侵权行为，请联系我们，我们会及时删除。</b>
                    </div>
                </if>
                <else/>
                <h2 style="text-align: center;">由于某些原因，此帖已被管理员关闭!</h2>
                <php>
                $after_content_hook_param=[
                    'object_id'=>$article['id'],
                    'table_name'=>'portal_post',
                    'object_title'=>$article['post_title'],
                    'user_id'=>$article['user_id'],
                    'url'=>cmf_url_encode('portal/Article/index',array('id'=>$article['id'],'cid'=>$category['id'])),
                    'object'=>$article
                ];
                </php>

                <hook name="after_content" param="after_content_hook_param"/>
                </if>

                <php>
                    $comment_hook_param=[
                    'object_id'=>$article['id'],
                    'table_name'=>'portal_post',
                    'object_title'=>$article['post_title'],
                    'url'=>cmf_url_encode('portal/Article/index',array('id'=>$article['id'],'cid'=>$category['id']))
                    ];
                    $comment=hook_one('comment',$comment_hook_param);
                </php>

                <if condition="empty($comment) && cmf_get_current_admin_id()">
                    <div style="border: 1px dashed #ddd;min-height: 200px;padding-top: 50px;">
                        <div class="alert alert-warning" role="alert">
                            此区域这为评论区，请安装评论插件！<br>
                            <em>注：普通用户不会看到此提示！</em>
                        </div>
                    </div>
                </if>
                {$comment}

            </div>
            <div class="r_box f_r">
                
                <div class="tit01">
                    <h2 class="tit">关注我</h2>
                    <div class="gzw">
                        <ul>
                            <li><span class="icon icon-user"></span> <b>五五</b></li>                           
                            <li><span class="icon icon-unif1d6"></span> <b>753993761</b></li>
                            <li><span class="icon icon-phone"></span> <b>15093565100</b></li>
                            <li><span class="icon icon-github_sign"> <b> github.com/yangguangwuwu</b></span></li>
                            <li><span class="icon icon-envelope"></span> <b>15093565100@163.com</b></li>                        
                        </ul>
                    </div>
                </div>
                <!--tit01 end-->

                <widget name="recommended_articles">
                <div class="tuwen">
                    <h2 class="tit">{$widget.title}</h2>
                    <ul>
                        <portal:articles limit="7" order="post.recommended DESC"
                        categoryIds="$widget.vars.recommended_articles_category_id">
                        <li>   
                            <a href="{:cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$vo['category_id']))}" target="_blank">
                                <if condition="empty($vo.more.thumbnail)">
                                <img src="__TMPL__/public/assets/images/0{:mt_rand(1,6)}.jpg" alt="{$vo.post_title}">
                                <else/>
                                <img src="{:cmf_get_image_url($vo.more.thumbnail)}" alt="{$vo.post_title}"/>      
                                </if>
                                <b>{$vo.post_title}</b></a>
                            <p><span class="tulanmu"><a href="{:cmf_url('portal/List/index',array('id'=>$vo['category_id']))}" target="_blank">{$category_arr[$vo.category_id]}</a></span><span class="tutime">{$vo.create_time|date='Y-m-d',###}</span></p>
                        </li>
                        </portal:articles>
                    </ul>
                </div>
                </widget>
                <widget name="hottest_articles">
                <div class="ph">
                    <h2 class="tit">{$widget.title}</h2>
                    <ul class="rank">
                        <portal:articles limit="12" order="post.post_hits DESC"
                        categoryIds="$widget.vars.hottest_articles_category_id">
                        <li>
                            <a title="{$vo.post_title}"
                                href="{:cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$vo['category_id']))}"  target="_blank">
                                {$vo.post_title}
                            </a>
                        </li>
                        </portal:articles>
                    </ul>
                </div>
                </widget>               
                <div class="ad"> <img src="__TMPL__/public/assets/images/03.jpg" alt="{$site_info.site_name|default=''}"> </div>
            </div>
        </div>
        <!-- container代码 结束 -->
        <div class="jzend"></div>
        <include file="public@footer"/>
    </div>
</body>

</html>